package com.heima.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("合作商参数模型")
public class PartnerDto {
    @ApiModelProperty("合作商名称")
    @NotBlank(message = "合作商名称不能为空")
    private String name;
    @ApiModelProperty("联系人姓名")
    @NotBlank(message = "联系人姓名不为空")
    private String contact;
    @NotBlank(message = "联系人电话不能为空")
    @ApiModelProperty("联系电话")
    private String mobile;
    @NotNull(message = "分成系数不能为空")
    @ApiModelProperty("系数")
    private Integer ratio;
    @NotBlank(message = "账户不能为空")
    @ApiModelProperty("账户")
    private String account;
    @ApiModelProperty("密码")
    private String password;
}
